<!DOCTYPE html>
<!-- saved from url=(0034)https://sns.tianqiapi.com/sns/talk -->
<html lang="zh-cn"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    
    <meta name="author" content="聊天室系统配置服务 QQ: 445899710 微信: hype522147">
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
    <title>微聊</title>
    <link rel="icon" href="https://sns.tianqiapi.com/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" href="./微聊_files/weui.min.css">
    <link rel="stylesheet" href="./微聊_files/layer.css">
    <link rel="stylesheet" href="./微聊_files/app.css">
        <meta http-equiv="refresh" content="30">
    <style>
    body .daodaoim .layui-layer-title{color:#f00; font-weight:bold;text-align:center;padding:0;}
    </style>
<link rel="stylesheet" href="./微聊_files/layer(1).css" id="layuicss-layer"></head>
<body>
    <!--navbar-->
    <div class="navbar">对话<img id="btnshade1" class="btn" src="./微聊_files/plus.png"></div>
    <div class="line35"></div>
    <!--search-->
    <div class="weui-search-bar" id="searchBar">
        <form class="weui-search-bar__form">
            <div class="weui-search-bar__box">
                <i class="weui-icon-search"></i>
                <input type="search" class="weui-search-bar__input" id="searchInput" placeholder="搜索" required="">
                <a href="javascript:" class="weui-icon-clear" id="searchClear"></a>
            </div>
        </form>
    </div>
        <!--list-->
    <div style="padding-bottom: 100px;">
                            <a href="javascript:location.href=&#39;/sns/chatu?fid=11085&#39;" class="weui-media-box weui-media-box_appmsg" style="background: #ffffff;">
                <div class="weui-media-box__hd" style="position: relative;">
                    <img class="weui-media-box__thumb" src="./微聊_files/132" alt="">
                                    </div>
                <div class="weui-media-box__bd">
                                        <h4 class="weui-media-box__title">ccjin</h4>
                                        <p class="weui-media-box__desc">您好，欢迎来到KK人工客服，请保存好在线客服的二维码，有什么问题24小时随时联系我们，可以直接扫码进入平台！&lt;br&gt;&lt;img src="http://cddn.huyahaha.com/chatsns</p>
                </div>
                <div class="weui-cell__ft" style="color: rgba(0,0,0,.3); font-size: 14px;">3小时前 14:47</div>
            </a>
            </div>
    <!--shade 1-->
    <div class="shade1">
        <img class="up" src="./微聊_files/up.png">
        <p onclick="location.href=&#39;/sns/jianqun&#39;" style="border-bottom: 1px solid #999"><img style="width: 20px; height: 20px; vertical-align: middle; margin-right: 5px;" src="./微聊_files/qunliao.png">发起群聊</p>
        <p onclick="addfriend()"><img style="width: 20px; height: 20px; vertical-align: middle; margin-right: 5px;" src="./微聊_files/addfriend.png">添加好友</p>
    </div>
    <!--./shade 1-->
        <div id="qunfabox" style="padding:20px; display: none;">
        <div><textarea style="width: 100%;" id="qunfatext" rows="30" onkeydown="enterbtnqunfa(event.keyCode)"></textarea></div>
        <div style="text-align: right; padding-top: 15px;">
            <button type="button" class="weui-btn weui-btn_block weui-btn_primary" onclick="qunfasubmit()">确定</button>
            <button type="button" class="weui-btn weui-btn_block weui-btn_default" onclick="layer.closeAll()">取消
            </button>
        </div>
    </div>
        <div id="subscribebox" style="text-align: center; display: none;">
        <p><img src="./微聊_files/qrcode.jpg" width="100%"></p>
        <p style="padding:0 30px 10px 30px;">
            <a href="javascript:location.reload();" class="weui-btn weui-btn_block weui-btn_primary">我已关注</a>
        </p>
    </div>
    <!--tabbar-->
    <div style="position: fixed; bottom: 0; left: 0; width: 100%; z-index: 9999;">
        <div class="weui-tabbar">
            <a href="javascript:location.href=&#39;/sns/talk&#39;" class="weui-tabbar__item weui-bar__item_on">
                <span style="display: inline-block;position: relative;">
                        <img src="./微聊_files/msg_cur.png" alt="" class="weui-tabbar__icon">
                                    </span>
                <p class="weui-tabbar__label">消息</p>
            </a>
            <a href="javascript:location.href=&#39;/sns/friend&#39;" class="weui-tabbar__item ">
                <img src="./微聊_files/book.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">通讯录</p>
            </a>
                        <a href="javascript:location.href=&#39;/sns/user&#39;" class="weui-tabbar__item ">
                <img src="./微聊_files/set.png" alt="" class="weui-tabbar__icon">
                <p class="weui-tabbar__label">我的</p>
            </a>
        </div>
    </div>
<script type="text/javascript" src="./微聊_files/jquery.min.js"></script>
<script type="text/javascript" src="./微聊_files/layer.js"></script>
<script type="text/javascript" src="./微聊_files/app.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#btnshade1').on('click', function () {
                $('.shade1').toggle()
            })
                                    setInterval(function () {
                timer()
            }, 5000)
        });
        function addfriend() {
            location.href = '/sns/friendAdd'
        }
        function qunfa() {
            $('#qunfatext').val('');
            layer.open({
                title: '群发窗口',
                type: 1,
                skin: 'layui-layer-rim', //加上边框
                area: ['420px', '90%'], //宽高
                content: $('#qunfabox')
            });
        }
        function qunfasubmit() {
            var saytext = $('#qunfatext').val();
            if (saytext == '') {
                layer.msg('请输入内容!');
                return;
            }
            $.ajax({
                type: 'POST',
                url: '/sns/qunfamsg',
                data: 'inputtext=' + saytext,
                dataType: 'JSON',
                error: function () {
                    layer.alert('网络错误');
                },
                success: function (res) {
                    if (res.errcode == 0) {
                        layer.msg(res.errmsg);
                        setTimeout(function () {
                            document.location.reload()
                        }, 300)
                    } else {
                        layer.msg(res.errmsg);
                    }
                }
            });
            $('#qunfatext').val('')
            $('#qunfatext').focus()
            //layerclose()
        }
        function enterbtnqunfa(a) {
            if (a == 13) {
                //qunfasubmit()
            }
        }

        function timer() {
            $.ajax({
                type: 'POST',
                url: '/sns/checkmsg',
                dataType: 'JSON',
                error: function () {
                    layer.alert('网络错误');
                },
                success: function (res) {
                    console.log(res)
                    if (res.errcode > 0) {
                        layer.msg('有新消息');
                        var audio = new Audio("/msg.mp3");
                        audio.play();
                        setTimeout(function () {
                            document.location.reload()
                        }, 1000)
                    }
                }
            });
        }
    </script>

</body></html>